/*
 * @Author: mark
 * @Date: 2023-08-13 09:03:34
 * @LastEditors: mark
 * @LastEditTime: 2023-08-28 06:48:16
 * @FilePath: /自研/RuoYi_egg/ruoyi-egg/app/router/system/config.js
 * @Description:
 *
 * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
 */
module.exports = (app, basicUrl) => {
  //缓存数据查询 查询缓存列表
  app.router.get(
    basicUrl + "/monitor/cache/getNames",
    app.controller.monitor.cache.getNames
  );

  //查询键名列表
  app.router.get(
    basicUrl + "/monitor/cache/getKeys/:key",
    app.controller.monitor.cache.getKeys
  );

  //查询键值
  app.router.get(
    basicUrl + "/monitor/cache/getValue/:keyType/:key",
    app.controller.monitor.cache.getValue
  );

  //清理全部
  app.router.delete(
    basicUrl + "/monitor/cache/clearCacheAll",
    app.controller.monitor.cache.clearCacheAll
  );
};
